package org.abc.fund.service.strategy.request.manual_adjustment;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import java.util.List;
import lombok.Data;
import org.abc.fund.service.strategy.request.create_strategy.StrategyComponentRequest;
import org.abc.fund.service.strategy.validator.WeightSum.WeightSum;

@Data
public class ManualAdjustmentRequest {
  @NotBlank(message = "理由不能为空")
  private String reason;

  @NotEmpty(message = "调整明细不能为空")
  @WeightSum
  @Valid
  private List<StrategyComponentRequest> details;
}
